//
// Created by 颖滴哦 on 2023/3/1.
//
// open.c: create a file, write to it.

#include "kernel/types.h"
#include "user/user.h"
#include "kernel/fcntl.h"

int
main()
{
    int fd = open("output.txt", O_WRONLY | O_CREATE);
    write(fd, "000" , 4);
    exit(0);
}